package com.y.service.impl;

import com.y.mapper.PeopleMapper;
import com.y.pojo.People;
import com.y.service.IPeopleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PeopleService implements IPeopleService {
    @Autowired
    private PeopleMapper peopleMapper;
    @Override
    public People queryPeople(People people) throws Exception {
        return peopleMapper.queryPeople(people);
    }

    @Override
    public int insertPeople(People people) throws Exception {
        return peopleMapper.insertPeople(people);
    }

    @Override
    public int updatePeople(People people) throws Throwable {
        return peopleMapper.updatePeople(people);
    }
}
